<?php slot('jquery_include')?>
HOME.cate_id = '<?php echo $data['news_cate']['id']?>';
HOME.init();
<?php end_slot()?>
<?php slot('header_css')?>
<style type="text/css">
.banner .nivoSlider {
	height: 370px;
}

.banner .nivoSlider img {
	height: 370px;
}



.banner .nivo-controlNav {
	width: 1000px;
}
.banner .nivo-directionNav {
	width: 980px;
	margin: -80px auto 0px auto;
}
</style>
<?php end_slot()?>
<?php slot('banners')?>
<div id="page-banner">
	<div id="page-inner">
		<div class="banner">
			<div id="nivo-slider" class="nivoSlider">
				<?php foreach($data['banners'] as $ban):?>
					<a href="<?php echo $ban['page_link']?>"><img src="<?php echo $ban['photo_url']?>"/></a>
				<?php endforeach;?>
			</div>
		</div>
		<div class="clr"></div>
	</div>
</div>
<div class="clr"></div>
<?php end_slot()?>
<div id="news">
	<div class="content-left">
		<div class="title-arrow" style="display: block">
			<span><?php echo $data['news_cate']['name']?></span>
		</div>		
		<?php $count_for = 0;
		foreach($data['news'] as $new): ?>
		<div class="news-item">
			<div class="title">
				<a href="<?php echo url_for2('news_id_'.$data['news_cate']['id'].'_detail', array('id' => $new['id'],'title' => UserStringHelper::titleToAddress($new['title'])))?>" class="links" title="<?php echo $new['title']; ?>" alt="<?php echo $new['title']; ?>"><?php echo $new['title']; ?></a>
				<span class="date">(<?php echo DateHelper::dateFormat($new['updated_at']); ?>)</span>	
			</div>
			<div class="desctiption">
				<?php if(!empty($new['photo_url'])):?>
				<div class="img"><img src="<?php echo $new['photo_url']?>" /></div>
				<?php endif;?>
				<?php echo $new['description']; ?>
				<div class="clr"></div>
			</div>
		</div>
		<?php echo (++$count_for % 2 == 0) ? '<div class="clr"></div>':'';
		endforeach; ?>
		<?php if(count($data['pagination_pager'])>1):?>
		<div class="clr"></div>
		<div style="border-top: 1px dashed #ccc;" class="spacing-bottom"></div>
		<div class="pagination">
			<span>Trang</span>
			<span class="pagination"> 
			<?php foreach ($data['pagination_pager'] as $p):?>
				<a href="<?php echo empty($p['url'])?'#':$p['url']?>" class="<?php echo $p['page_class']?>"><?php echo $p['page_num']?></a>
			<?php endforeach;?>
			</span>
			<div class="clr"></div>
		</div>
		<div class="clr"></div>
		<?php endif;?>
	</div>
	<div class="content-right padding-tabs advs" data-page="<?php echo USER_DEFINED::ADV_PAGE_NEWS?>" data-attr='class="adv"' data-page-num='-1' data-limit='-1'>
		
	</div>
	<div class="clr"></div>
</div>
